.container{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url();
    background: rgba(0,0,0,.5);
    text-align: center;
    white-space: nowrap;
    font-size: 0;
    z-index: 99;
    display: none;
}
.container::after{
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.dialog{
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  text-align: left;
  white-space: normal;
}
.content{
  width:240px;
  height: 150px;
  padding: 20px;
}